﻿using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace CRM.Models.Email;

[Index(nameof(CreatedAt))]
[Index(nameof(Email))]
[Index(nameof(OemId), nameof(CompanyId), nameof(GroupId), nameof(UserId))]
public partial class EmailBlackList : BaseModel
{
    [Comment("id")]
    public int Id { get; set; }

    [Comment("UserId")]
    public int UserId { get; set; }

    [Comment("GroupId")]
    public int GroupId { get; set; }

    [Comment("CompanyId")]
    public int CompanyId { get; set; }

    [Comment("OemId")]
    public int OemId { get; set; }

    [Comment("邮件地址"), Column(TypeName = "varchar(50)")]
    public string Email { get; set; }

    [Comment("备注"), Column(TypeName = "varchar(255)")]
    public string Remark { get; set; }

}